<?php

/**
 * Created by JetBrains PhpStorm.
 * User: root
 * Date: 10/6/12
 * Time: 8:54 AM
 * To change this template use File | Settings | File Templates.
 */
class MVC_Model
{

    public $db;
    
    public $pagination;
    
    protected $records_per_page;

    public function __construct()
    {
        $this->records_per_page = 10;

        $this->db = Database_ConnectionFactory::getFactory()->getConnection('mysql', Config::get('db.host'), Config::get('db.username'), Config::get('db.password'), Config::get('db.database'));
        
        $this->pagination = new Pagination();
    }

    public static function getInstance()
    {
        return new MVC_AbstractModel();

    }

}
